import request from '@/utils/request'

// 查询推送配置列表
export function listBasicPushConfig(query) {
  return request({
    url: '/basic/message/basicPushConfig/list',
    method: 'get',
    params: query
  })
}

// 查询推送配置详细
export function getBasicPushConfig(pushConfigId) {
  return request({
    url: '/basic/message/basicPushConfig/' + pushConfigId,
    method: 'get'
  })
}

// 新增推送配置
export function addBasicPushConfig(data) {
  return request({
    url: '/basic/message/basicPushConfig',
    method: 'post',
    data: data
  })
}

// 修改推送配置
export function updateBasicPushConfig(data) {
  return request({
    url: '/basic/message/basicPushConfig',
    method: 'put',
    data: data
  })
}

// 删除推送配置
export function delBasicPushConfig(pushConfigId) {
  return request({
    url: '/basic/message/basicPushConfig/' + pushConfigId,
    method: 'delete'
  })
}
